 <link rel="stylesheet" href="../Public/style/forum.css" />、
 <script>
function sub_save(){
	
	$("#myform").submit();
	}
</script>
 	 <div id="top">
		 <div class="head1 clear">
			 <div class="account sprite_icon" style="text-align:center; ">
                  <a href="index.php?g=Mobile&m=User&a=index" style=" color:#FFF; line-height:50px">
                 {if cookie('username')}
                  {php $user=M('User')->field('username')->where('id='.$jgsatuserid)->find()}
                  {php echo $user['username']} 
                 {else}登录
                 {/if}
                 </a>
			 </div>
			   {if $title}
			    <div class="title">{$title}</div> 
               {else}
                <div class="title">{$seo_title}</div> 
               {/if}<div class="search sprite_icon">
			     <span class="keep" onclick="sub_save()">确定</span>
			 </div>
		 </div>
	 </div>	 

     <include file="Mobile:nav"/> 
     
     
     <div class="forum_clasfi">
		 <div class="text clear">
			 <strong>回复：</strong>
			 <div class="F_choose" style="background:#eee; border:#666 solid 0px;">
				{$reply['username']}
				 <!--<i></i>

				 <ul class="menu">
					 <li>装修问答</li>
					 <li>装修把关</li>
					 <li>餐饮店装修经验</li>
					 <li>餐饮设备购买需求</li>
					 <li>餐饮店攻略</li>
					 <li>设计师交流</li>
					 <li>广告专区</li>
					 <li>招聘专区</li>
					 <li>案例下载</li>
				 </ul>-->
			 </div>
			 
		 </div>
<form id="myform" action="index.php?g=Mobile&m=Zforum_reply&a=insert" method="post"  >
                    <input type="hidden" name="reply[theme_id]" value="{$theme['id']}">
                    <input  type="hidden" name="reply[pid]" value="{$reply['id']}" />
                    <input  type="hidden" name="reply[re_name]" value="{$re_name}"  />
                    
		            <input type="hidden" name="mes[theme_title]" value="{$theme['title']}">
                    <input type="hidden" name="mes[theme_id]" value="{$theme['id']}">
                    <input type="hidden" name="mes[userid]" value="{$theme['userid']}">
                    <input type="hidden" name="mes[username]" value="{$theme['username']}">
                    <input type="hidden" name="mes[url]" value="index.php?{$_SERVER['QUERY_STRING']}"/>

		 <div class="F_content clear">
			 <strong>内容：</strong>
			 <textarea style="font-family:微软雅黑" name="reply[content]" id="" placeholder=""></textarea>
		 </div>
</form>	 
	 </div>	 

	<!-- <div class="upload clear">
		 <span></span>
		 <a href="javascript:;"></a>
	 </div>-->
     
     
     <script>
$("#title").keyup(function(){
var title=$("#title").val();

var len = 0; 
for (var i = 0; i < title.length; i++) { 
if (title[i].match(/[^\x00-\xff]/ig) != null) //全角 
len += 2; 
else 
len += 1; 
} 
if(len>48){
	var t=getByteVal(title,60)
	var ll=Math.ceil((60-len)/2);
	$("#title").val(t);
	$("#tishi").html('还可输入'+ll+'个字');
	}else{
		$("#tishi").html(' ');
		}

//do something

//删除超出的 字符
function getByteVal(val, max) { 
var returnValue = ''; 
var byteValLen = 0; 
for (var i = 0; i < val.length; i++) { 
if (val[i].match(/[^\x00-\xff]/ig) != null) 
byteValLen += 2; 
else 
byteValLen += 1; 
if (byteValLen > max) 
break; 
returnValue += val[i]; 
} 
return returnValue; 
} 

});
</script>

